<template>
  <div>
    <h2>打印插件的使用</h2>
    <!--
      打印插件:vue-print-nb
          1:下载  npm i vue-print-nb
          2:导入(main.js导入)
             import Print from 'vue-print-nb'
             Vue.use(Print)
          3:在需要打印的范围的标签上加id  id='xxx'
          4:在打印按钮加  v-print="{id:'xxx'，popTitle:'标题'}"
     -->
    <div id="xxx123">123456</div>
    <el-button
      v-print="{ id: 'xxx123', popTitle: '打印员工信息' }"
    >打印按钮</el-button>
  </div>
</template>
<script>
export default {}
</script>
<style></style>
